package com.nova.edc.model.system;

import com.nova.frame.annotation.Join;
import com.nova.frame.annotation.Table;
import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Transient;
import com.nova.module.filter.annotation.FilterCondition;
import com.nova.module.filter.query.FilterMode;

import java.math.BigDecimal;

/**
 * @param
 * @author <a href="mailto:huzhanjun@novacloud.com">huzj</a>
 * @version : 1.0
 * @date 2015-12-21 14:27
 */
@Table("t_customer_area")
public class CustomerArea {
    @Id
    private Integer id;
    private Integer areacode;
    @FilterCondition(filterMode = FilterMode.LIKE)
    private String areaname;
    @FilterCondition
    private Integer customerinfoid;
    @Transient
	@Join(fieldName = "customerinfoid", table = CustomerInfo.class, joinColumn = "CustomerName")
	private String companyname;
    @Transient
    private Integer lightCount;
    @Transient
    private Integer airCount;
    @Transient
    private Double energy;
    @Transient
    private Integer pointnum;
    @Transient
    private Double trapower;
    @Transient
    private Double ledpower;
    @Transient
    private Double realpower;

    public Double getTrapower() {
        return trapower;
    }

    public void setTrapower(Double trapower) {
        this.trapower = trapower;
    }

    public Double getLedpower() {
        return ledpower;
    }

    public void setLedpower(Double ledpower) {
        this.ledpower = ledpower;
    }

    public Integer getPointnum() {
        return pointnum;
    }

    public void setPointnum(Integer pointnum) {
        this.pointnum = pointnum;
    }

    public Double getRealpower() {
        return realpower;
    }

    public void setRealpower(Double realpower) {
        this.realpower = realpower;
    }

    public Double getEnergy() {
        return energy;
    }

    public void setEnergy(Double energy) {
        this.energy = energy;
    }

    public Integer getLightCount() {
        return lightCount;
    }

    public void setLightCount(Integer lightCount) {
        this.lightCount = lightCount;
    }

    public Integer getAirCount() {
        return airCount;
    }

    public void setAirCount(Integer airCount) {
        this.airCount = airCount;
    }

    public String getCompanyname() {
		return companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAreacode() {
        return areacode;
    }

    public void setAreacode(Integer areacode) {
        this.areacode = areacode;
    }

    public String getAreaname() {
        return areaname;
    }

    public void setAreaname(String areaname) {
        this.areaname = areaname;
    }

    public Integer getCustomerinfoid() {
        return customerinfoid;
    }

    public void setCustomerinfoid(Integer customerinfoid) {
        this.customerinfoid = customerinfoid;
    }
}
